package com.tucc.hello.juc;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.TimeUnit;

/**
 * @author tucc
 * @description todo
 * @package com.tucc.hello.juc
 * @date 2021/6/1
 **/
public class TestPark {

    public static void main(String[] args) throws InterruptedException {
        CountDownLatch countDownLatch = new CountDownLatch(1);
        new Thread(()->{
            try {
                TimeUnit.SECONDS.sleep(5);
                countDownLatch.countDown();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
        countDownLatch.await();

    }
}
